import {createApp} from 'vue'
import {createPinia} from "pinia";
import './style.css'
import App from './App.vue'
import router from "./router";

import ElementPlusPlugin from './plugins/element-plus'

// 全局注册 ElementPlus 图标组件(npm i @element-plus/icons-vue)
import * as ElementPlusIcons from '@element-plus/icons-vue'

const app = createApp(App)
const store = createPinia()
for (const [key, component] of Object.entries(ElementPlusIcons)) {
    app.component(key, component)
}

app.use(ElementPlusPlugin)
app.use(store)
app.use(router)
app.mount('#app')
